#include"SeqList.h"


SeqList s;

void test1()
{
	SeqListInit(&s);
	SeqListPrint(&s);

	SeqListPushBack(&s, 1);
	SeqListPushBack(&s, 2);
	SeqListPushBack(&s, 3);
	SeqListPushBack(&s, 4);
	SeqListPrint(&s);
}

void test2()
{
	SeqListInit(&s);
	SeqListPushBack(&s, 3);
	SeqListPushBack(&s, 4);

	SeqListPushFront(&s, 2);
	SeqListPushFront(&s, 1);
	SeqListPopFront(&s);
	SeqListPopBack(&s);
	SeqListPrint(&s);
}

void test3()
{
	SeqListInit(&s);
	SeqListPushBack(&s, 3);
	SeqListPushBack(&s, 4);

	SeqListPushFront(&s, 2);
	SeqListPushFront(&s, 1);

	SeqListInsert(&s, 2, 20);
	SeqListErase(&s, 2);
	SeqListPrint(&s);
}


int main()
{
	test3();
	return 0;
}